package entities;

public class Entity implements Comparable {
	private String name;
	private float score=0;
	public Entity(String name){
		this.setName(name);
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getScore(){
		return this.score;
	}
	public void setScore(float score){
		this.score = score;
	}
	@Override
	public int compareTo(Object arg0) {
		Entity e = (Entity)arg0;
		if ( this.score>e.score){
			return -1;
		}else if( this.score<e.score){
			return 1;
		}else		
			return 0;
	}
}
